package net.pws.oos.biz.query;

import java.util.List;
import java.util.Map;

import net.pws.oos.biz.model.Notice;
import net.pws.oos.biz.model.NoticeReceiver;
import net.pws.oos.biz.query.parameter.NoticeQueryParameter;

@SuppressWarnings("rawtypes")
public interface NoticeFinder {
	
	public Notice getNotice(String id);
	
	public int myCount(NoticeQueryParameter queryParameter);

	public List<Map> myList(NoticeQueryParameter queryParameter);
	
	public int count(NoticeQueryParameter queryParameter);
	
	/**
	 * 查询出已读人数、未读人数的
	 * @param queryParameter
	 * @return
	 */
	public List<Map> list(NoticeQueryParameter queryParameter);
	
	/**
	 * 查找接收人
	 * @param noticeId
	 * @param userId
	 * @return
	 */
	public NoticeReceiver findReceiver(String noticeId, String userId);
	
	/**
	 * 查找接收人信息
	 * @param noticeId
	 * @return
	 */
	public List<Map> listReceivers(String noticeId);
}
